package com.heima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.pojo.Partner;
import com.heima.pojo.dto.PartnerDto;
import com.heima.pojo.vo.PartnerVo;
import com.heima.utils.PageResult;

/**
 * @author 赵超
 */
public interface PartnerService extends IService<Partner> {
    PageResult<PartnerVo> page(Integer pageIndex, Integer pageSize, String name);

    Integer add(PartnerDto partnerDto);

    PartnerVo getPartnerById(Integer id);

    Integer updatePartnerById(Integer id, PartnerDto partnerDto);

    Integer deleteById(Integer id);
}
